#ifndef UTILITY_H
#define UTILITY_H
#include <string>
#include <vector>

template<typename T>
std::vector<T> split(const std::string& input, const std::string& delimeter) {
	std::vector<T> result;
	std::size_t start = 0;
	std::size_t next_delimeter = input.find(delimeter, start);
	while(next_delimeter != std::string::npos) {
		result.push_back(T{input.substr(start, next_delimeter-start)});
		start = next_delimeter+1;
		next_delimeter = input.find(delimeter, start);
	}
	result.push_back(T{input.substr(start)});
	return result;
}
#endif //UTILITY_H
